package pl.edu.agh.som.conscience;

import pl.edu.agh.som.Node;

public class DefaultConscience implements IConscienceFunction {

    private double gamma;
    private int nodesCount;

    public DefaultConscience(double gamma, int nodesCount) {
        this.gamma = gamma;
        this.nodesCount = nodesCount;

    }

    @Override
    public double evaluate(Node node) {
        return gamma * (nodesCount * node.getWinFrequency() - 1);
    }
}
